/******************************************************************************
** 
** Counting inputted chars.
** 
** File name:	chars_count.c
** Compilation:	cc chars_count.c -o chars_count
** Execution:	./chars_count
** 
** Description:
** Prints the number of inputted chars.
** 
******************************************************************************/
#include <stdio.h>

main()
{
    long nc;
    
    nc = 0;
    while(getchar() != EOF) {
        ++nc;
    }
    printf("%ld\n", nc);
}

